package patterns.builder;


/**
 * Created by lenovo on 2016/11/23 0023.
 * 演示获取不同的套餐
 */
public class BuilderPatternDemo {
    public static void main(String[] args) {
        MealBuilder builder = new MealBuilder();

        //汉堡咖啡套餐
        Meal bcMeal = builder.prepareBC();
        System.out.println("汉堡咖啡套餐来喽：");
        bcMeal.showItems();
        System.out.println("套餐总价：" + bcMeal.getCost());
        //汉堡咖啡套餐
        Meal cgMeal = builder.prepareCG();
        System.out.println("薯条绿茶套餐来喽：");
        cgMeal.showItems();
        System.out.println("套餐总价：" + cgMeal.getCost());
    }
}
